package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.HouseUploadingOrderMapper;
import com.ruoyi.yipaiju.domain.HouseUploadingOrder;
import com.ruoyi.yipaiju.service.IHouseUploadingOrderService;

/**
 * fo_house_uploading_orderService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class HouseUploadingOrderServiceImpl implements IHouseUploadingOrderService 
{
    @Autowired
    private HouseUploadingOrderMapper houseUploadingOrderMapper;

    /**
     * 查询fo_house_uploading_order
     * 
     * @param id fo_house_uploading_order主键
     * @return fo_house_uploading_order
     */
    @Override
    public HouseUploadingOrder selectHouseUploadingOrderById(Long id)
    {
        return houseUploadingOrderMapper.selectHouseUploadingOrderById(id);
    }

    /**
     * 查询fo_house_uploading_order列表
     * 
     * @param houseUploadingOrder fo_house_uploading_order
     * @return fo_house_uploading_order
     */
    @Override
    public List<HouseUploadingOrder> selectHouseUploadingOrderList(HouseUploadingOrder houseUploadingOrder)
    {
        return houseUploadingOrderMapper.selectHouseUploadingOrderList(houseUploadingOrder);
    }

    @Override
    public List<HouseUploadingOrder> selectHouseUploadingOrderList1(HouseUploadingOrder houseUploadingOrder)
    {
        return houseUploadingOrderMapper.selectHouseUploadingOrderList1(houseUploadingOrder);
    }

    /**
     * 根据业务主键查询一条记录：fo_house_uploading_order
     *
     * @param houseUploadingOrder fo_house_uploading_order
     * @return fo_house_uploading_order
     */
    @Override
    public HouseUploadingOrder selectOneHouseUploadingOrder(HouseUploadingOrder houseUploadingOrder)
    {
        return houseUploadingOrderMapper.selectOneHouseUploadingOrder(houseUploadingOrder);
    }

    /**
     * 新增fo_house_uploading_order
     * 
     * @param houseUploadingOrder fo_house_uploading_order
     * @return 结果
     */
    @Override
    public int insertHouseUploadingOrder(HouseUploadingOrder houseUploadingOrder)
    {
        houseUploadingOrder.setCreateTime(DateUtils.getNowDate());
        return houseUploadingOrderMapper.insertHouseUploadingOrder(houseUploadingOrder);
    }

    /**
     * 修改fo_house_uploading_order
     * 
     * @param houseUploadingOrder fo_house_uploading_order
     * @return 结果
     */
    @Override
    public int updateHouseUploadingOrder(HouseUploadingOrder houseUploadingOrder)
    {
        houseUploadingOrder.setUpdateTime(DateUtils.getNowDate());
        return houseUploadingOrderMapper.updateHouseUploadingOrder(houseUploadingOrder);
    }

    @Override
    public int updateHouseUploadingOrderCondition(HouseUploadingOrder houseUploadingOrder, HouseUploadingOrder houseUploadingOrderCondition)
    {
                houseUploadingOrder.setUpdateTime(DateUtils.getNowDate());
        return houseUploadingOrderMapper.updateHouseUploadingOrderCondition(houseUploadingOrder, houseUploadingOrderCondition);
    }

    /**
     * 批量删除fo_house_uploading_order
     * 
     * @param ids 需要删除的fo_house_uploading_order主键
     * @return 结果
     */
    @Override
    public int deleteHouseUploadingOrderByIds(Long[] ids)
    {
        return houseUploadingOrderMapper.deleteHouseUploadingOrderByIds(ids);
    }

    /**
     * 删除fo_house_uploading_order信息
     * 
     * @param id fo_house_uploading_order主键
     * @return 结果
     */
    @Override
    public int deleteHouseUploadingOrderById(Long id)
    {
        return houseUploadingOrderMapper.deleteHouseUploadingOrderById(id);
    }

    /**
     * 条件删除fo_house_uploading_order
     *
     * @param houseUploadingOrder fo_house_uploading_order
     * @return 结果
     */
    @Override
    public int deleteHouseUploadingOrderByCondition(HouseUploadingOrder houseUploadingOrder)
    {
        return houseUploadingOrderMapper.deleteHouseUploadingOrderByCondition(houseUploadingOrder);
    }

}
